package generalEvolutionaryAlgorithm;

public abstract class EABlackBoxFunction {
	private int queries = 0;
	public EAResult evaluate(EAInstance instance){
		++queries;
		return specificEvaluation(instance);
	}
	
	protected abstract EAResult specificEvaluation(EAInstance instance);

	public int getNumberOfQueries(){
		return queries;
	}
}
